package com.graden.background.controller.sysrole.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjf
 * @since 2019-03-21
 */
@Data
@ApiModel
public class RoleUpdateVO {

    /**
     * id
     */
    @ApiModelProperty(name = "id", value = "id", example = "1")
    @NotNull(message = "ROLE_0004")
    private Integer id;

    /**
     * 角色名称
     */
    @ApiModelProperty(name = "角色名称", value = "name", example = "后台支持者")
    @NotBlank(message = "ROLE_0005")
    private String name;

    /**
     * 选择菜单权限
     */
    @ApiModelProperty(name = "菜单权限集合", value = "name")
    private Integer[] menus;

    /**
     * 选择功能权限
     */
    @ApiModelProperty(name = "功能权限集合", value = "name")
    private Integer[] functions ;


}
